home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
351-375
/
351
/
pdc
/
bin.lzh
/
include
/
assert.h
next >
Wrap
C/C++ Source or Header
|
1990-04-06
|
1KB
|
30 lines
/*
* Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
* PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
* PDC I/O Library (C) 1987 by J.A. Lydiatt.
*
* This code is freely redistributable upon the conditions that this
* notice remains intact and that modified versions of this file not
* be included as part of the PDC Software Distribution without the
* express consent of the copyright holders. No warrantee of any
* kind is provided with this code. For further information, contact:
*
* PDC Software Distribution Internet: BIX:
* P.O. Box 4006 or hummel@cs.uiuc.edu lhummel
* Urbana, IL 61801-8801 petersen@uicsrd.csrd.uiuc.edu
*/
/* assert.h
*
* Tests a given conditional and program aborts with a diagnostic message
* if false.
*/
#ifndef NDEBUG
#define assert(x) if (!(x)) { fprintf(stderr, \
"Assertion failed: x, file %s, line %d\n", __FILE__, __LINE__); \
_abort(); }
#else
#define assert(x)
#endif